<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      libwebp-1.1.0
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;10.&nbsp;Graphics and Font Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="libtiff.html" title="LibTIFF-4.1.0">Prev</a>
          <p>
            LibTIFF-4.1.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="mypaint-brushes.html" title=
          "mypaint-brushes-1.3.0">Next</a>
          <p>
            mypaint-brushes-1.3.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="graphlib.html" title=
          "Chapter&nbsp;10.&nbsp;Graphics and Font Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="libwebp" name="libwebp"></a>libwebp-1.1.0
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to libwebp
        </h2>
        <p>
          The <span class="application">libwebp</span> package contains a
          library and support programs to encode and decode images in WebP
          format.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://downloads.webmproject.org/releases/webp/libwebp-1.1.0.tar.gz">
                http://downloads.webmproject.org/releases/webp/libwebp-1.1.0.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 7e047f2cbaf584dff7a8a7e0f8572f18
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 3.8 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 45 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.3 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          libwebp Dependencies
        </h3>
        <h4>
          Recommended
        </h4>
        <p class="recommended">
          <a class="xref" href="libjpeg.html" title=
          "libjpeg-turbo-2.0.4">libjpeg-turbo-2.0.4</a>, <a class="xref"
          href="libpng.html" title="libpng-1.6.37">libpng-1.6.37</a>,
          <a class="xref" href="libtiff.html" title=
          "LibTIFF-4.1.0">LibTIFF-4.1.0</a>, and <a class="xref" href=
          "../multimedia/sdl.html" title="SDL-1.2.15">SDL-1.2.15</a> (for
          improved 3D Acceleration)
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../x/freeglut.html" title=
          "Freeglut-3.2.1">Freeglut-3.2.1</a> and <a class="xref" href=
          "giflib.html" title="giflib-5.2.1">giflib-5.2.1</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/libwebp">http://wiki.linuxfromscratch.org/blfs/wiki/libwebp</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of libwebp
        </h2>
        <p>
          Install <span class="application">libwebp</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr           \
            --enable-libwebpmux     \
            --enable-libwebpdemux   \
            --enable-libwebpdecoder \
            --enable-libwebpextras  \
            --enable-swap-16bit-csp \
            --disable-static        &amp;&amp;
make</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--enable-swap-16bit-csp</code></em>:
          This switch enables byte swap for 16 bit colorspaces.
        </p>
        <p>
          <em class="parameter"><code>--disable-static</code></em>: This
          switch prevents installation of static versions of the libraries.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">cwebp, dwebp, gif2webp, vwebp, and
              webpmux</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Library:</strong>
              <span class="segbody">libwebpdecoder.so, libwebpdemux.so,
              libwebpextras.so, libwebpmux.so, and libwebp.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directory:</strong>
              <span class="segbody">/usr/include/webp</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="cwebp" name="cwebp"></a><span class=
                    "term"><span class=
                    "command"><strong>cwebp</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    compresses an image using the WebP format.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="dwebp" name="dwebp"></a><span class=
                    "term"><span class=
                    "command"><strong>dwebp</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    decompresses WebP files into PNG, PAM, PPM or PGM images.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="gif2webp" name="gif2webp"></a><span class=
                    "term"><span class=
                    "command"><strong>gif2webp</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    converts a GIF image to a WebP image.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="vwebp" name="vwebp"></a><span class=
                    "term"><span class=
                    "command"><strong>vwebp</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    decompress a WebP file and display it in a window.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="webpmux" name="webpmux"></a><span class=
                    "term"><span class=
                    "command"><strong>webpmux</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    creates animated WebP files from non-animated WebP
                    images, extracts frames from animated WebP images, and
                    manages XMP/EXIF metadata and ICC profile.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libwebp-lib" name="libwebp-lib"></a><span class=
                    "term"><code class="filename">libwebp.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains the API functions for WebP encoding and
                    decoding.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-16 17:15:05 -0600
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="libtiff.html" title="LibTIFF-4.1.0">Prev</a>
          <p>
            LibTIFF-4.1.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="mypaint-brushes.html" title=
          "mypaint-brushes-1.3.0">Next</a>
          <p>
            mypaint-brushes-1.3.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="graphlib.html" title=
          "Chapter&nbsp;10.&nbsp;Graphics and Font Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
